﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PregledOsebje.aspx.cs" Inherits="Sio.Mdm.Web.Organizacija.PregledOsebje" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>SIO - MDM :: Organizacija : Pregled osebja</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
    <ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
    <Content>
		                    
		<ext:GridPanel ID="GridSplosniSeznam" runat="server" 
			StripeRows="true" 
			TrackMouseOver="true">
     <Plugins>        
		<ext:GridFilters ID="GridFilters1" runat="server">
		<Filters>
			<ext:StringFilter DataIndex="Ime" />
			<ext:StringFilter DataIndex="Priimek" />
			<ext:StringFilter DataIndex="RazredOznaka" />
			<ext:ListFilter DataIndex="Spol" Options="moški, ženska" />
			<ext:NumericFilter DataIndex="IdmStevilka" />
		</Filters>
		</ext:GridFilters>		
      </Plugins>			
		<Store>
			<ext:Store ID="StoreSplosniSeznam" runat="server">
			<SortInfo Field="RazredOznaka" />
			<Reader>
				<ext:JsonReader IDProperty="IdmStevilka">
					<Fields>
						<ext:RecordField Name="IdmStevilka" Type="Int" />
						<ext:RecordField Name="VlogaId" Type="Int" />
						<ext:RecordField Name="Ime" Type="String" />
						<ext:RecordField Name="Priimek" Type="String" />
						<ext:RecordField Name="SpolStr" Type="String" />
						<ext:RecordField Name="DelovnoMesto" Type="String" />
						<ext:RecordField Name="Poklic" Type="String" />
						<ext:RecordField Name="NazivUcitelja" Type="String" />
					</Fields>
				</ext:JsonReader>
			</Reader>
			</ext:Store>			
		</Store>
	    
		<ColumnModel ID="ColumnModel1" runat="server">
		<Columns>
			<ext:RowNumbererColumn />
			<ext:Column ColumnID="IdmStevilka" Hidden="true" Hideable="false" DataIndex="IdmStevilka" />
			<ext:Column ColumnID="Ime" Header="Ime" DataIndex="Ime" Width="100" />
			<ext:Column ColumnID="Priimek" Header="Priimek" DataIndex="Priimek" Width="100" />
			<ext:Column ColumnID="SpolStr" Header="Spol" DataIndex="SpolStr" Width="50" />
			<ext:Column ColumnID="DelovnoMesto" Header="Delovno mesto" DataIndex="DelovnoMesto" Width="100" />
			<ext:Column ColumnID="Poklic" Header="Poklic" DataIndex="Poklic" Width="100" />
			<ext:Column ColumnID="NazivUcitelja" Header="Naziv učitelja" DataIndex="NazivUcitelja" Width="100" />
		</Columns>
		</ColumnModel>
		
		<SelectionModel>
			<ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
		</SelectionModel>
		
		<TopBar>
			<ext:Toolbar ID="Toolbar1" runat="server" Width="500">
			<Items>
				<sio:Button ID="Button3" runat="server" Text="Excel" Icon="PageExcel" >
					<DirectEvents>
					<Click OnEvent="IzvozVExcel" IsUpload="true" Type="Submit" >
					<ExtraParams>
						<ext:Parameter Name="gridExportData" Mode="Raw" Value="Ext.encode(#{GridSplosniSeznam}.getRowsValues({selectedOnly:false}))" />
					</ExtraParams>					
					</Click>
				</DirectEvents>	
				</sio:Button>
				<sio:Button ID="Button1" runat="server" Text="XML" Icon="PageCode" >
					<DirectEvents>
					<Click OnEvent="IzvozVXML" IsUpload="true" Type="Submit" >
					<ExtraParams>
						<ext:Parameter Name="gridExportData" Mode="Raw" Value="Ext.encode(#{GridSplosniSeznam}.getRowsValues({selectedOnly:false}))" />
					</ExtraParams>					
					</Click>
				</DirectEvents>	
				</sio:Button>
				<sio:Button ID="Button2" runat="server" Text="CSV" Icon="PageAttach" >
					<DirectEvents>
					<Click OnEvent="IzvozVCSV" IsUpload="true" Type="Submit" >
					<ExtraParams>
						<ext:Parameter Name="gridExportData" Mode="Raw" Value="Ext.encode(#{GridSplosniSeznam}.getRowsValues({selectedOnly:false}))" />
					</ExtraParams>					
					</Click>
				</DirectEvents>	
				</sio:Button>
			</Items>
			</ext:Toolbar>
		</TopBar>
		
		</ext:GridPanel>
    
	</Content>
	</ext:Viewport>
    </form>
</body>
</html>